package cn.iocoder.yudao.module.train.controller.admin.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单分页 Request VO")
@Data
public class OrderPageReqVO extends PageParam {

    @Schema(description = "微信用户ID")
    private Long wxUserId;

    @Schema(description = "交易编号")
    private String tradeSn;

    @Schema(description = "订单编号")
    private String orderSn;

    @Schema(description = "学生ID", example = "15513")
    private Long studentId;

    @Schema(description = "课程ID（多个用逗号隔开）", example = "5301")
    private Long commodityId;

    @Schema(description = "会员等级id", example = "25588")
    private Long levelId;

    @Schema(description = "原价", example = "22206")
    private BigDecimal originPrice;

    @Schema(description = "售价", example = "10836")
    private BigDecimal salePrice;

    @Schema(description = "优惠金额")
    private BigDecimal discountAmount;

    @Schema(description = "退款金额")
    private BigDecimal refundAmount;

    @Schema(description = "订单状态（0待支付/1已支付/2退款中/3已退款/4已关闭）", example = "1")
    private Integer status;

    @Schema(description = "订单类型（0课程订单/1会员订单）", example = "1")
    private Integer orderType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "学生姓名")
    @JsonProperty("studentName")
    private String studentName;

    @Schema(description = "商品名称")
    @JsonProperty("commodityName")
    private String commodityName;

    @Schema(description = "等级名称")
    @JsonProperty("levelName")
    private String levelName;

    @Schema(description = "学生电话")
    @JsonProperty("studentPhoneNumber")
    private String studentPhoneNumber;


}
